﻿import clr
clr.AddReference('System.Web')

import MyModule

from System.Web.UI import *
from System.Web.UI.WebControls import *

tbName = TextBox()
bSayHello = Button()
wcBreak = WebControl(HtmlTextWriterTag.Br)
lGreeting = Label()
	
def CreateChildControls():

	
	self.Controls.Add(tbName)
	
	
	bSayHello.Click += SayHello
	bSayHello.Text = 'SayHello'
	self.Controls.Add(bSayHello)
	
	
	self.Controls.Add(wcBreak) 
	
	
	self.Controls.Add(lGreeting)
	
def SayHello(sender, args):

	lGreeting.Text = MyModule.SayHello(tbName.Text)

        
    